﻿@{
    ViewBag.Title = "商品导入";
    Layout = "~/Areas/WorkSpace/Views/Shared/_CollegeAdminTemplete.cshtml";
}
@section head{
    <script type="text/javascript" src="/Scripts/jquery.js"></script>
}
<div id="content-header">
    <h1>
        商品导入</h1>
</div>
<div id="breadcrumb">
    <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>
        首页</a> <a href="#" class="tip-bottom">商品管理</a> <a href="#" class="current">商品导入</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <h5>
                        普通商品导入</h5>
                </div>
                <div class="widget-content nopadding">
                    <form action="/workspace/collegeadmin/productsimport" method="post" enctype="multipart/form-data" class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label">
                            新商品导入</label>
                        <!-- File Upload -->
                        <div class="controls">
                            <input disabled="disabled" class="input-file" type="file" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">
                            商品上货</label>
                        <!-- File Upload -->
                        <div class="controls">
                            <input  class="input-file" name="bulk" type="file" />
                            <a target="_blank" href="/content/templete/templete.xls">模板下载</a>
                        </div>
                    </div>
                    @if (Request.HttpMethod.ToUpper() == "POST")
                    {
                        if (ViewBag.Success)
                        {
                            <div class="alert alert-success">
                                <b>导入成功，一共导入 @ViewBag.Count 件商品</b>
                            </div>
                        }
                        else
                        { 
                            <div class="alert alert-error">
                              <b>导入失败，请确保excel为标准格式。如果为标准格式请稍后重试或联系管理员！</b>
                            </div>
                        }
                    }
                     <div class="control-group">
                      <!-- Button -->
                      <div class="controls">
                        <button class="btn btn-success">保存</button>
                      </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript">
        $(function () {
            $('#likProduct').addClass('open');
            $('#likProduct').addClass('active');
        });
    </script>
}
